<?php // views/elements/errors.ctp
 if (!empty($errors)) { ?>
 <div class="alert-error">
     <h3>Có  <?php echo count($errors); ?> lỗi, vui lòng kiểm tra lại:</h3>
     <ul>
         <?php foreach ($errors as $field => $error) { ?>
         <li><?php  echo $error[0]; ?></li>
         <?php } ?>
     </ul>
 </div>
<?php } ?>